﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Himp.Platform.Migrations
{
    /// <inheritdoc />
    public partial class add_table_ClncDiagDict : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "MainClncDiagDict",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uuid", nullable: false),
                    DiagCode = table.Column<string>(type: "text", nullable: false),
                    DiagName = table.Column<string>(type: "text", nullable: false),
                    HiDiagCode = table.Column<string>(type: "text", nullable: true),
                    HIDiagName = table.Column<string>(type: "text", nullable: true),
                    ICD10Codg = table.Column<string>(type: "text", nullable: true),
                    ICD10Name = table.Column<string>(type: "text", nullable: true),
                    Ver = table.Column<int>(type: "integer", nullable: false),
                    Pinyincode = table.Column<string>(type: "text", nullable: true),
                    Wubicode = table.Column<string>(type: "text", nullable: true),
                    ValiFalg = table.Column<bool>(type: "boolean", nullable: false),
                    IsDeleted = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
                    TenantId = table.Column<Guid>(type: "uuid", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_MainClncDiagDict", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "MainTcmDiseDict",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uuid", nullable: false),
                    TcmDiseCode = table.Column<string>(type: "text", nullable: false),
                    TcmDiseName = table.Column<string>(type: "text", nullable: false),
                    Ver = table.Column<int>(type: "integer", nullable: false),
                    Pinyincode = table.Column<string>(type: "text", nullable: true),
                    Wubicode = table.Column<string>(type: "text", nullable: true),
                    ValiFalg = table.Column<bool>(type: "boolean", nullable: false),
                    IsDeleted = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
                    TenantId = table.Column<Guid>(type: "uuid", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_MainTcmDiseDict", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "MainTcmsympDict",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uuid", nullable: false),
                    TcmsympCode = table.Column<string>(type: "text", nullable: false),
                    TcmsympName = table.Column<string>(type: "text", nullable: false),
                    Ver = table.Column<int>(type: "integer", nullable: false),
                    Pinyincode = table.Column<string>(type: "text", nullable: true),
                    Wubicode = table.Column<string>(type: "text", nullable: true),
                    ValiFalg = table.Column<bool>(type: "boolean", nullable: false),
                    IsDeleted = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
                    TenantId = table.Column<Guid>(type: "uuid", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_MainTcmsympDict", x => x.Id);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "MainClncDiagDict");

            migrationBuilder.DropTable(
                name: "MainTcmDiseDict");

            migrationBuilder.DropTable(
                name: "MainTcmsympDict");
        }
    }
}
